﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EllenTang.IDal
{
    public interface IBaseDal<T>where T:class,new()
    {
        

        IQueryable<T> LoadEntities(Expression<Func<T, bool>> whereLamda);
        IQueryable<T>LoadEntities<s>(int pageSize,int pageIndex,out int pageCount,Expression<Func<T,bool>>whereLamda,Expression<Func<T,s>>orderbyLamda,bool isAsc);
        bool UpdateEntities(T entities);
        bool DeleteEntities(T entities);
        T AddEntities(T entities);
    }
}
